<div class="mb10"><a href="/shop/tellist/"><img alt="全国賃貸情報アパマンショップ" src="/common_new/img/b_img.gif" width="250" height="200" /></a></div>
<div class="mb10">

{if $research_data.search_kbn == "01"}<div class="title"><div class="jyusho_search"><h3>住所から検索</h3></div></div>
{elseif $research_data.search_kbn == "02"}<div class="title"><div class="station_search"><h3>沿線・駅から検索</h3></div></div>
{elseif $research_data.search_kbn == "03"}<div class="title"><div class="map_search"><h3>地図から検索</h3></div></div>
{elseif $research_data.search_kbn == "04"}<div class="title"><div class="line_search"><h3>路線図から検索</h3></div></div>
{elseif $research_data.search_kbn == "05"}<div class="title"><div class="tsukin_search"><h3>通勤・通学時間から検索</h3></div></div>
{elseif $research_data.search_kbn == "06"}<div class="title"><div class="eki_search"><h3>住みたい駅名から検索</h3></div></div>
{elseif $research_data.search_kbn == "07"
     || $research_data.search_kbn == "08"
     || $research_data.search_kbn == "09"
     || $research_data.search_kbn == "10"
     || $research_data.search_kbn == "11"
     || $research_data.search_kbn == "12"
     || $research_data.search_kbn == "14"
     || $research_data.search_kbn == "15"}
<div style="border:1px solid #52a4d4; background-color:#28b0e0; color:#ffffff;"><h3 style="padding:5px;">
	{if $research_data.search_kbn == "07"}キーワードから検索
	{elseif $research_data.search_kbn == "08"}家賃相場から検索
	{elseif $research_data.search_kbn == "09"}賃料×間取りから検索
	{elseif $research_data.search_kbn == "10"}住居形態から検索
	{elseif $research_data.search_kbn == "11"}こだわりから検索
	{elseif $research_data.search_kbn == "12"}おすすめ検索
	{elseif $research_data.search_kbn == "14"}キャンペーンから検索
	{elseif $research_data.search_kbn == "15"}学校名から検索
	{/if}
</h3></div>
{else}
	{assign var="display" value="none"}
{/if}

{if not $display == "none"}
	<div class="l_gb">
		<div class="s_list">

{if $research_data.search_kbn == "07"}
			<!-- キーワード検索 -->
			<p><select id="PrefCd[]" name="PrefCd[]">
				<option value="">都道府県を選択してください</option>
				{foreach from=$research_data.PrefList item=pref_val key=pref_key name=prefLoop}
				<option value={$pref_key}>{$pref_val}</option>
				{/foreach}
			</select></p>
			<p><input type="text" id="freeword" name="freeword" size="30" value="{$research_data.freeword}" /></p>
{elseif $research_data.search_kbn == "05"}
			<!-- 通勤通学時間検索 -->
			{if $research_data.TgtStNm}
			<dl>
				<dt><a href="#" onclick="javascript:Research('9');">選び直す</a></dt>
				<dd>{$research_data.TgtStNm}</dd>
			</dl>
			{/if}
			{if $research_data.RailCd}
			<dl>
				<dt><a href="#" onclick="javascript:Research('4');">沿線を選択</a></dt>
				<dd>
				{foreach from=$research_data.RailCd item=rail name=railLoop}
					{$rail.RAIL_NAME}<br />
				{/foreach}
				</dd>
			</dl>
			{elseif $research_data.TgtStNm}
			<dl>
				<dt>沿線を選択</dt>
				<dd>--</dd>
			</dl>
			{/if}
{elseif $research_data.search_kbn == "06"}
		<!-- 駅名検索 -->
			{if $research_data.StWord}
			<dl>
				<dt><a href="#" onclick="javascript:Research('7');">選び直す</a></dt>
				<dd>{$research_data.StWord}</dd>
			</dl>
			{/if}
			{if $research_data.StCd}
			<dl>
				<dt><a href="#" onclick="javascript:Research('5');">駅を選択</a></dt>
				<dd>
				{foreach from=$research_data.StCd item=st name=stLoop}
					{$st.ST_NAME}<br />
				{/foreach}
				</dd>
			</dl>
			{elseif $research_data.StWord}
				<dl>
					<dt>駅を選択</dt>
					<dd>--</dd>
				</dl>
			{/if}
{elseif $research_data.search_kbn == "08"}
		<!-- 家賃相場検索 -->
			{if $research_data.StWord}
			<dl>
				<dt><a href="#" onclick="javascript:Research('1');">選び直す</a></dt>
				<dd>
				{foreach from=$research_data.PrefCd item=pref name=prefLoop}
					{$pref.PREF_NAME}<br />
				{/foreach}
				</dd>
			</dl>
			{/if}
{elseif $research_data.search_kbn == "15"}
		<!-- 学校名検索 -->
			{if $research_data.sch_name && !isset($research_data.PrefCd)}
			<dl>
				<dt><a href="#" onclick="javascript:Research('6');">選び直す</a></dt>
				<dd>
				{$research_data.sch_name}
				</dd>
			</dl>
			{/if}
			{if $research_data.sch_cd}
			<dl>
				<dt><a href="#" onclick="javascript:Research('10');">選び直す</a></dt>
				<dd>
				{$research_data.sch_cd}
				</dd>
			</dl>
			{/if}

{else}

	{if $research_data.OemCd == ""} {* 都道府県 OEMは表示しない *}
		{if $research_data.PrefCd}
			<dl>
				<dt><a href="#" onclick="javascript:Research('1');">都道府県を選択</a></dt>
				<dd>
				{foreach from=$research_data.PrefCd item=pref name=prefLoop}
					{$pref.PREF_NAME}<br />
				{/foreach}
				</dd>
			</dl>
		{else}
			<dl>
				<dt>都道府県を選択</dt>
				<dd>--</dd>
			</dl>
		{/if}
	{/if}
	{if $research_data.search_kbn != "02" && $research_data.search_kbn != "04"
	 && $research_data.search_kbn != "08" && $research_data.search_kbn != "09"
	 || (($research_data.search_kbn == "08" || $research_data.search_kbn == "09") && $research_data.SrhType == '1')}

		{if $research_data.CityCd}
			<dl>
				<dt><a href="#" onclick="javascript:Research('2');">市区町村を選択</a></dt>
				<dd>
				{foreach from=$research_data.CityCd item=city name=cityLoop}
					{$city.CITY_NAME}<br />
				{/foreach}
				</dd>
			</dl>
		{elseif $research_data.PrefCd}
			<dl>
				<dt>市区町村を選択</dt>
				<dd>--</dd>
			</dl>
		{/if}
		{if $research_data.search_kbn != "03"} {* 地図検索を除く *}
		{if $research_data.TownCd}
			<dl>
				<dt><a href="#" onclick="javascript:Research('3');">町を選択</a></dt>
				<dd>
				{foreach from=$research_data.TownCd item=town name=townLoop}
					{$town.TOWN_NAME}<br />
				{/foreach}
				</dd>
			</dl>
		{elseif $research_data.PrefCd
		     && $research_data.CityCd}
			<dl>
				<dt>町を選択</dt>
				<dd>--</dd>
			</dl>
		{/if}
		{/if}

	{/if}
	{if $research_data.search_kbn == "02"
	 || (($research_data.search_kbn == "08" || $research_data.search_kbn == "09") && $research_data.SrhType == '2')}

		{if $research_data.RailCd}
			<dl>
				<dt><a href="#" onclick="javascript:Research('4');">沿線を選択</a></dt>
				<dd>
				{foreach from=$research_data.RailCd item=rail name=railLoop}
					{$rail.RAIL_NAME}<br />
				{/foreach}
				</dd>
			</dl>
		{elseif $research_data.PrefCd}
			<dl>
				<dt>沿線を選択</dt>
				<dd>--</dd>
			</dl>
		{/if}
		{if $research_data.StCd}
			<dl>
				<dt><a href="#" onclick="javascript:Research('5');">駅を選択</a></dt>
				<dd>
				{foreach from=$research_data.StCd item=st name=stLoop}
					{$st.ST_NAME}<br />
				{/foreach}
				</dd>
			</dl>
		{elseif $research_data.PrefCd && $research_data.RailCd}
			<dl>
				<dt>駅を選択</dt>
				<dd>--</dd>
			</dl>
		{/if}

	{/if}
	{if $research_data.search_kbn == "04"} {* 路線図検索 *}
		{if $research_data.stcode}
			<dl>
				<dt><a href="#" onclick="javascript:Research('5');">駅を選択</a></dt>
				<dd>
				{foreach from=$research_data.stcode item=st name=stLoop}
					{$st.STCODE_NAME}<br />
				{/foreach}
				</dd>
			</dl>
		{elseif $research_data.PrefCd}
			<dl>
				<dt>駅を選択</dt>
				<dd>--</dd>
			</dl>
		{/if}
	{/if}

{/if}

		</div>
	{if $dsp_serch_btn}{* 検索ボタン表示 *}
		<div class="l_gb_in">
			<div class="search_button_l">
				<a href="javascript:void(0);" onclick="loadRstlist('',false); return false;"><span>この条件で検索</span></a>
			</div>
		</div>
	{/if}
	</div>

<!-- hidden -->
{if $research_data.OemCd != ""} {* OEM検索 *}
	{if $research_data.search_kbn == "01"}
<input type="hidden" name="research_url" id="research_url" value="{$apm.baseurl}" />
	{elseif $research_data.search_kbn == "02"}
<input type="hidden" name="research_url" id="research_url" value="{$apm.baseurl}" />
	{/if}
{else} {* 通常検索 *}
	{if $research_data.search_kbn == "01"}
<input type="hidden" name="research_url" id="research_url" value="{$apm.baseurl}search/jyusyosearch" />
	{elseif $research_data.search_kbn == "02"}
<input type="hidden" name="research_url" id="research_url" value="{$apm.baseurl}search/ensenekisearch" />
	{elseif $research_data.search_kbn == "03"}
<input type="hidden" name="research_url" id="research_url" value="{$apm.baseurl}search/chizusearch" />
	{elseif $research_data.search_kbn == "04"}
<input type="hidden" name="research_url" id="research_url" value="{$apm.baseurl}search/rosenzusearch" />
	{elseif $research_data.search_kbn == "05"}
<input type="hidden" name="research_url" id="research_url" value="{$apm.baseurl}search/tsukintsugakujikansearch" />
	{elseif $research_data.search_kbn == "06"}
<input type="hidden" name="research_url" id="research_url" value="{$apm.baseurl}search/ekinamesearch" />
	{elseif $research_data.search_kbn == "07"}
<input type="hidden" name="research_url" id="research_url" value="{$apm.baseurl}search/jyusyosearch" />
	{elseif $research_data.search_kbn == "08"}
<input type="hidden" name="research_url" id="research_url" value="{$apm.baseurl}search/yachinsoubasearch" />
	{elseif $research_data.search_kbn == "09"}
<input type="hidden" name="research_url" id="research_url" value="{$apm.baseurl}search/chinryomadorisearch" />
	{elseif $research_data.search_kbn == "10"}
<input type="hidden" name="research_url" id="research_url" value="{$apm.baseurl}search/jyukyokeitaisearch" />
	{elseif $research_data.search_kbn == "11"}
<input type="hidden" name="research_url" id="research_url" value="{$apm.baseurl}search/kodawarisearch" />
	{elseif $research_data.search_kbn == "12"}
<input type="hidden" name="research_url" id="research_url" value="{$apm.baseurl}search/tokusyusearch" />
	{elseif $research_data.search_kbn == "14"}
<input type="hidden" name="research_url" id="research_url" value="{$apm.baseurl}search/campaignsearch" />
	{elseif $research_data.search_kbn == "15"}
<input type="hidden" name="research_url" id="research_url" value="{$apm.baseurl}search/gakkosearch" />
	{/if}
{/if}
<form method="post" name="frm_Research" id="frm_Research">
<div id="research_hiddenval">
{if not $request.SrhKbn}<input type="hidden" name="SrhKbn" value="{$research_data.search_kbn}" />{/if}
{if ($research_data.search_kbn == "25" && strlen($research_data.OemCd) > 1 )}<input type="hidden" name="OemCd" value="{$research_data.OemCd}" />{/if}
{if ($research_data.search_kbn == "19" || $research_data.search_kbn == "21") && $request.reRequest == "1"}
{$ReqHiddenTag}
{else}
{$hiddenTag}
{/if}
</div>
</form>
<!-- /hidden -->

{/if} {* display<>none *}
</div>
